package pl.edu.pjwstk.kor.model;

import java.util.ArrayList;
import java.util.List;

public class Employee extends Person {
	private static final long serialVersionUID = 1L;
	
	private Employee boss;
	private String job;
	
	private List<Deal> deals = new ArrayList<Deal>();
	
	public Employee getBoss() {
		return boss;
	}
	
	public void setBoss(Employee boss) {
		this.boss = boss;
	}
	
	public String getJob() {
		return job;
	}
	
	public void setJob(String job) {
		this.job= job;
	}
	
	public List<Deal> getDeals() {
		return deals;
	}
	
	public void setDeals(List<Deal> deals) {
		this.deals = deals;
	}

	@Override
	public String toString() {
		return "Employee [boss=" + boss + ", job=" + job + ", deals=" + (deals != null ? deals.size() : 0)
				+ ", firstName=" + firstName + ", lastName=" + lastName
				+ ", birthDate=" + birthDate + "]";
	}
}
